import { defineStore } from 'pinia'

export const useUserStore =  defineStore('user', {
  state: () => {
    return {
      age: 18
    }
  },
  getters: {
    userAge: state => state.age
  },
  actions: {
    getUserAge(age) {
      this.age = age
    }
  }
})